﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using FisheryPlatform.Bussiness.WebRuntime;
using FisheryPlatform.Bussiness.Passport;

namespace FisheryPlatform.Web.Admin.Ajax
{
    /// <summary>
    /// ValidateCode 的摘要说明
    /// </summary>
    public class ValidateCode : HttpHandlerBase, IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            base.Init(context);

            Response.Cache.SetCacheability(HttpCacheability.NoCache);
            ValidateCodeManager.GenerateCode(context);
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}